package com.xxzb;

import com.xxzb.bean.Dept;
import com.xxzb.dao.DeptDAO;

import java.util.List;

public class App {
    public static DeptDAO ddao=new DeptDAO();
    public static void main(String[] args) {
        a();
    }

    private static void a() {
        List<Dept> list=ddao.find();
        for (int i = 0; i <list.size() ; i++) {
            Dept dept=list.get(i);
            System.out.println(dept);
        }
    }
}
